lib/repo: Take exclusive lock while generating summary
authorMatthew Leeds <matthew.leeds@endlessm.com>
Mon, 16 Jul 2018 21:54:57 +0000 (14:54 -0700)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 30 Jul 2018 17:19:12 +0000 (17:19 +0000)
commitfb36b62f331a7cc5d3d10e53d6db086bf1c18e0c
treeaaa8d92f571cf65d8ebc1c80532ba3522c233cbc
parent968e8805b0dd4afbcb25db312f53584b0ec59931
lib/repo: Take exclusive lock while generating summary

This ensures that commits aren't deleted and refs aren't added, removed,
or updated while the summary is being generated. This is in preparation
for adding a repo config option that will automatically regenerate the
summary on every ref change.

Closes: #1681
Approved by: jlebon
src/libostree/ostree-repo.c